import Editor from "../editor"

export class RemoveTextOperation{
    anchor_: number
    focus_: number
    constructor(anchor: number,focus: number){
        this.anchor_ = anchor
        this.focus_ = focus
    }
    apply(editor: Editor){
        editor.getTextModel()?.remove(this.anchor_,this.focus_)
    }
}